package com.rdgzs.framework.constant;

public class SysConstants {
	public static final String AUTHORITY_PREFIX = "ROLE_";

	/**
	 * 开关标志
	 */
	public static final String ENABLED = "1";
	public static final String DISABLED = "0";
	
	/**
	 * sql 关键字
	 */
	public static final String SQL_ORDER_BY="order by";
	public static final String SQL_WHERE="where";
	
	/**
     * 分隔符
     */
    public static final String SEPARATOR_COMMA = ",";
    public static final String SEPARATOR_POINT = ".";
    public static final String SEPARATOR_SEMICOLON = ";";
    public static final String SEPARATOR_HORIZONTAL = "-";
    public static final String SEPARATOR_SOLIDUS = "/";
    public static final String SEPARATOR_BAR = "\\|";
    
    /**
     * 字符编码
     */
    public static final String ENCODING_UTF8 = "UTF-8";
    public static final String ENCODING_GB2312 = "GB2312";
    public static final String ENCODING_ISO8859 = "ISO-8859-1";
    public static final String ENCODING_UTF16 = "UTF-16";
    public static final String ENCODING_BIG5 = "BIG5";
    public static final String ENCODING_GBK = "GBK";
    
    /**
     * http mime type content type 的属性值
     */
    public final static String CONTENTTYPE_JSON = "application/json";
    public final static String CONTENTTYPE_TEXT = "text/html";
    public final static String CONTENTTYPE_EXCEL = "application/vnd.ms-excel";

    /**
     * 验证码的默认KEY
     */
    public final static String CAPTCHA = "CAPTCHA";
    public final static String USER_COL_ID = "account";
    
    
    /**
     * 超管key信息
     */
	public final static String ADMIN_ACCOUNT = "ADMIN_ACCOUNT";
	public final static String ADMIN_PASSWORD = "ADMIN_PASSWORD";
	public final static String ADMIN_SALT = "ADMIN_SALT";
	public final static String ADMIN_NAME = "ADMIN_NAME";
	
    public final static String CURR_USERNAME = "CURR_USERNAME";
    public final static String CURR_USER = "CURR_USER";
    
    /**
     * 登陆失败的次数KEY
     */
	public final static String LOGIN_FAILED_COUNT = "LOGIN_FAILED_COUNT";

	/**
     * 帐号类型
     */
	public final static String ACCOUNT_TYPE_SUPER_ADMIN = "0";//系统超级管理员
	public final static String ACCOUNT_TYPE_ADMIN = "1";//管理员
	public final static String ACCOUNT_TYPE_EMP = "2";//员工
    
    
    
	/**
	 * 节点类型 1:根  2:元素
	 */
	public static final String NODE_TYPE_ROOT = "1";
	public static final String NODE_TYPE_ELEMENT = "2";

	/**
	 * 组织机构类型
	 * 组织机构类型：根：0，集团：1，公司：2，分公司：3，部门：4，组：5，其它：6，dict
	 */
	public static final String ORG_TYPE_ROOT = "0";
	public static final String ORG_TYPE_BLOC = "1";
	public static final String ORG_TYPE_COMPANY = "2";
	public static final String ORG_TYPE_BRANCHCOMPANY = "3";
	public static final String ORG_TYPE_DEPARTMENT = "4";
	public static final String ORG_TYPE_GROUP = "5";
	public static final String ORG_TYPE_OTHER = "6";

	/**
	 * 角色
	 */
	public static final String ROLE_EMPLOYEE = "员工";
	
	public static final String prefixStr = "抱歉。";
	public static final String suffixStr = "请稍后再试或与管理员联系！";
	public static final String exceptionMessage= "系统内部错误";

}
